import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '书籍编号',
    dataIndex: 'bookNo',
    width: 120,
  },
  {
    title: '书名',
    dataIndex: 'bookName',
    width: 100,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    label: '书名',
    field: 'bookName',
    component: 'JInput',
    colProps: { span: 8 },
  },
];

export const formAddBookSchema: FormSchema[] = [
  {
    label: '书籍编号',
    field: 'bookNo',
    component: 'Input',
    required: true,
  },
  {
    label: '书名',
    field: 'bookName',
    component: 'Input',
    required: true,
  },
];
